import VueRouter from 'vue-router'

//导入组件
import homeContainer from './components/tabbar/HomeContainer.vue'
import memberContainer from './components/tabbar/MenberContainer.vue'
import searchContainer from './components/tabbar/SearchContainer.vue'
import shopcarContainer from './components/tabbar/ShopcarContainer.vue'

var router = new VueRouter({
    routes: [
        {
            path: '/',
            redirect: homeContainer
        }, 
        {
            path: '/homeContainer',
            component: homeContainer
        },
        {
            path: '/memberContainer',
            component: memberContainer
        },
        {
            path: '/searchContainer',
            component: searchContainer
        },
        {
            path: '/shopcarContainer',
            component: shopcarContainer
        }
    ],
    linkActiveClass: 'mui-active'
})

export default router